<template>
  <div>
    <div class="pt-20 pl-10 pb-20 font-bold">
      我{{ type == 1 ? "创建" : "参与" }}的任务
    </div>

    <!-- list -->
    <div class="p-40">
      <div
        class="border mb-40 p-20 text-center"
        v-for="n in 4"
        :key="n"
        @click="totaskdetail(n)"
      >
        <span>任务{{ n }}：name</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [],
      type: 1,
    };
  },

  onLoad(option) {
    this.type == option.type || 1;
  },

  methods: {
    totaskdetail(item) {
      uni.navigateTo({
        url: `/pages/page/taskDetail`,
      });
    },
  },
};
</script>

<style lang="scss" scoped></style>
